Carbon


SetMenuFont

Header: Menus.h Carbon status: Supported

Sets the font to be used in a menu.

OSStatus SetMenuFont (
    MenuHandle menu, 
    SInt16 inFontID, 
    UInt16 inFontSize
);
menu

A value of type MenuHandle. Pass a handle to the menu whose font is to be set.

inFontID

The font family ID for the font to be used. Pass 0 to use the current system font.

inFontSize

The size, in points, of the font to be used. Valid font size values range from 9 to 24 points, inclusive. Pass 0 to use the font size of the current system font.

function result

A result code.

DISCUSSION

Your application may use the SetMenuFont function to set the font for an individual menu, such as a pop-up menu.

VERSION NOTES

This function is available with Mac OS 8.5 and later.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when MenusLib 8.5 or later is installed. Exported by CarbonLib 1.0 and later and by MenusLib 8.5 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)